﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaHan.WorkTicket.Domain
{
    [Table("tblTable")]
    public class Customer:BaseEntity
    {
        [Key]
        public Guid CustomerID { get; set; }

        [Required]
        [MaxLength(20)]
        [DisplayName("客户编号")]
        public string NO { get; set; }

        [Required]
        [MaxLength(100)]
        [DisplayName("公司名称-中文")]
        public string CN_Name { get; set; }

        [MaxLength(100)]
        [DisplayName("公司名称-英文")]
        public string EN_Name { get; set; }

        [Required]
        [MaxLength(20)]
        [DisplayName("客户地区")]
        public string Region { get; set; }

        [Required]
        [MaxLength(20)]
        [DisplayName("城市")]
        public string City { get; set; }

        [MaxLength(20)]
        [DisplayName("客户经理")]
        public string ManagerName { get; set; }

        [MaxLength(200)]
        [DisplayName("公司地址")]
        public string CompanyAddress { get; set; }

        [MaxLength(200)]
        [DisplayName("送货地址")]
        public string ReceiptAddress { get; set; }

        [MaxLength(20)]
        [DisplayName("邮编")]
        public string Zip { get; set; }

        [MaxLength(20)]
        [DisplayName("电话")]
        public string Tel { get; set; }

        [MaxLength(20)]
        [DisplayName("传真")]
        public string Fax { get; set; }

        [MaxLength(50)]
        [DisplayName("网站")]
        public string Website { get; set; }

        [MaxLength(20)]
        [DisplayName("法人")]
        public string Chieftain { get; set; }

        [DisplayName("注册资金")]
        public decimal Bankroll { get; set; }

        [MaxLength(30)]
        [DisplayName("开户银行1")]
        public string BankName1 { get; set; }

        [MaxLength(50)]
        [DisplayName("银行账号1")]
        public string BankNo1 { get; set; }

        [MaxLength(30)]
        [DisplayName("开户银行2")]
        public string BankName2 { get; set; }

        [MaxLength(50)]
        [DisplayName("银行账号2")]
        public string BankNo2 { get; set; }

        [MaxLength(20)]
        [DisplayName("联系人")]
        public string ContactPerson { get; set; }

        [MaxLength(20)]
        [DisplayName("联系人电话")]
        public string ContactMobile { get; set; }

        [MaxLength(20)]
        [DisplayName("财务负责人")]
        public string FinancialPerson { get; set; }

        [MaxLength(20)]
        [DisplayName("财务电话")]
        public string FinancialPhone { get; set; }

        [MaxLength(50)]
        [DisplayName("Email")]
        public string Email { get; set; }


        [DisplayName("客户简介")]
        [MaxLength(200)]
        public string Description { get; set; }
    }
}
